Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip comments during the initial read #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jdkelleher
Copy link
Contributor

Commented out include and directory statements are being processed. This fixes that behavior so all valid bind9 comments can be used in conf files.

(debug) Include statement (# //include "/etc/bind/zones.rfc1918";) found.
(debug) Including file `/etc/bind/zones.rfc1918.

@@ -164,6 +164,18 @@ READCONF: {
my ($config);
open( CONF, "<$bootfile" ) || die "(fatal) Can't open $bootfile:$!";
while ( $_ = <CONF> ) { # deal with the includes!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work, because mkrdns directives are placed in named comments, which should not be stripped out.

Also, comments in named.boot start with ;.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants